package experiment5;

public class No_2 {
    public static void main(String []args){

    }
}

class MyCharacter{
    char value;

    public MyCharacter(char new_value){
        value=new_value;
    }

    public boolean isLetter(){
        if ((value>='a'&&value<='z')||(value>='A'&&value<='Z')){
            return true;
        }
        else {
            return false;
        }
    }

    public boolean isDigit(){
        if (value>='0'&&value<='9'){
            return true;
        }
        else{
            return false;
        }
    }

    public boolean isWhitespace(){
        if (value==' '){
            return true;
        }
        else {
            return false;
        }
    }

    public boolean isUpperCase(){
        if (value>='A'&&value<='Z'){
            return true;
        }
        else {
            return false;
        }
    }

    public boolean isLowerCase(){
        if (value>='a'&&value<='z'){
            return true;
        }
        else {
            return false;
        }
    }

    public char toUpperCase(char c){
        return (char) (c-'a'+'A');
    }

    public char toLowerCase(char c){
        return (char) (c-'A'+'a');
    }

    public String toString(char c){
        return String.valueOf(c);
    }
}
